package com.sky.service;

import com.sky.dto.DishFlavorDto;
import com.sky.dto.DishPageDto;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishItemVo;
import com.sky.vo.DishPageVo;
import com.sky.vo.DishVo;

import java.util.List;

public interface IDishService {
    PageResult<DishPageVo> queryByPage(DishPageDto dishPageDto);

    void saveDish(DishFlavorDto dishFlavorDto);

    List<Dish> listByCategoryId(Long categoryId);

    void updateStatus(Dish dish);

    int countDishes(Long categoryId);

    DishVo getById(Long id);

    void modifyDish(DishFlavorDto dishFlavorDto);

    void deleteDish(List<Long> ids);

    List<DishVo> dishesWithFlavor(Long categoryId);

    List<DishItemVo> getBySetmealId(Long id);
}
